package com.project.service.impl;

import com.project.bean.LinkBean;
import com.project.mapper.ILinkMapper;
import com.project.service.ILinkService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class LinkServiceImpl implements ILinkService {
    @Autowired
    private ILinkMapper mapper;

    @Override
    public void updateEndDate(int id) {
        mapper.updateEndDate(id);
    }

    @Override
    public void addEmployeeToProject(LinkBean link) {
        mapper.addEmployeeToProject(link);
    }
}
